//
//  reviewlayer.m
//  my-BTB
//
//  Created by Shin Stupid on 9/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "reviewlayer.h"


@implementation reviewlayer
-(id)init
{
	if( (self=[super init] )) {
		
		[self initBG];
	}
	return self;
	
}

-(void)initBG
{
	CCSprite *bgImage=[CCSprite spriteWithFile:@"menuReview.png"];
	[bgImage setAnchorPoint:ccp(0,0)];
	bgImage.position=ccp(-95,0);
	[self addChild:bgImage];
	
	CCMenu *_menu=[CCMenu menuWithItems:nil];
	CCMenuItemImage *item1=[CCMenuItemImage itemFromNormalImage:@"contGame.png" selectedImage:@"contGame_hover.png" disabledImage:@"contGame.png" target:self selector:@selector(continousGame)]; 
	item1.position=ccp(420,300);
	
	[_menu addChild:item1];
	
	[_menu setAnchorPoint:ccp(0,0)];
	_menu.position=ccp(0,0);
	
	[self addChild:_menu];
}
-(void)continousGame
{
	[self setVisible:FALSE];
	[tempGameControler settUpEnableClick];
	
}

-(void)getInstanceGameControler:(CCLayer *)gameControler
{
	tempGameControler=gameControler;
}
@end
